package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the ATTENDANCERESULT database table.
 * 
 */
@Entity
@NamedQuery(name="Attendanceresult.findAll", query="SELECT a FROM Attendanceresult a")
public class Attendanceresult implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="ATTENDANCERESULT_ATTRESID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ATTENDANCERESULT_ATTRESID_GENERATOR")
	@Column(name="ATTRES_ID")
	private long attresId;

	@Column(name="ATTRES_ABNORMAL")
	private BigDecimal attresAbnormal;

	@Column(name="ATTRES_DUTY")
	private BigDecimal attresDuty;

	@Column(name="ATTRES_TRUE")
	private BigDecimal attresTrue;

	//bi-directional many-to-one association to StaffInformation
	@ManyToOne
	@JoinColumn(name="STAIN_ID")
	private StaffInformation staffInformation;

	public Attendanceresult() {
	}

	public long getAttresId() {
		return this.attresId;
	}

	public void setAttresId(long attresId) {
		this.attresId = attresId;
	}

	public BigDecimal getAttresAbnormal() {
		return this.attresAbnormal;
	}

	public void setAttresAbnormal(BigDecimal attresAbnormal) {
		this.attresAbnormal = attresAbnormal;
	}

	public BigDecimal getAttresDuty() {
		return this.attresDuty;
	}

	public void setAttresDuty(BigDecimal attresDuty) {
		this.attresDuty = attresDuty;
	}

	public BigDecimal getAttresTrue() {
		return this.attresTrue;
	}

	public void setAttresTrue(BigDecimal attresTrue) {
		this.attresTrue = attresTrue;
	}

	public StaffInformation getStaffInformation() {
		return this.staffInformation;
	}

	public void setStaffInformation(StaffInformation staffInformation) {
		this.staffInformation = staffInformation;
	}

}